package com.jxtc.enterprise.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxtc.enterprise.common.entity.VipUserOrderPayment;
import com.jxtc.enterprise.hr.dto.HrVipUserOrderPageQueryDTO;
import com.jxtc.enterprise.tenant.dto.vipUserOrderManage.VipUserOrderPageQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

public interface VipUserOrderPaymentMapper extends BaseMapper<VipUserOrderPayment> {

    Page<VipUserOrderPageQueryDTO> queryVipUserOrderStatistic(Page<VipUserOrderPageQueryDTO> page,
                                                              @Param("tenantId") String tenantId,
                                                              @Param("keyword") String keyword,
                                                              @Param("startDate") String startDate,
                                                              @Param("endDate") String endDate);

    Page<HrVipUserOrderPageQueryDTO> queryVipUserOrderStatisticForHrByCompanyId(
            Page<HrVipUserOrderPageQueryDTO> page,
            @Param("companyId") String companyId,
            @Param("startDate") String startDate,
            @Param("endDate") String endDate
    );
}
